package com.misoneism.fire.event
{
	import flash.events.Event;
	
	import org.as3commons.collections.framework.IList;
	
	public class IncidentParserEvent extends Event
	{
		public static const COMPLETED: String = "completed";
		
		public static const FAILED: String = "failed";
		
		private var _incidents: IList /* of IIncident */;
		
		public function IncidentParserEvent( type: String, bubbles: Boolean=false, cancelable: Boolean=false, incidents: IList=null /* of IIncident */ )
		{
			super( type, bubbles, cancelable );
			
			_incidents = incidents;
		}
		
		
		/**
		 * @inheritDoc
		 */
		override public function clone(  ): Event
		{
			return new IncidentParserEvent( type, bubbles, cancelable, incidents );
		}
		
		
		/**
		 * The parsed incidents.
		 */
		public function get incidents(  ): IList /* of IIncident */
		{
			return _incidents;
		}
	}
}